package com.jsh.ex.exception;

/**
 * Created by wukai on 2017/9/15.
 */
public class BaseException extends RuntimeException {
    private int code;
    public BaseException(){
        super();
    }
    public BaseException(String message){
        super(message);
        this.code = 501;
    }
    public BaseException(int code,String message){
        super(message);
        this.code = code;
    }
    public BaseException(int code,String message,Throwable cause){
        super(message,cause);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
